package com.finance.capacity.deliveryDetail.capDao;

import com.finance.capacity.deliveryDetail.bean.pojo.DeliveryDetailInfo;
import com.finance.capacity.deliveryDetail.bean.pojo.DeliveryDetailList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * The interface Delivery detail mapper.
 *
 * @Author: ly
 * @Date: Created in 2017/8/24
 */
@Component
public interface DeliveryDetailMapper {

    /**
     * Gets delivery list.
     *
     * @param siteDetailId the site detail id
     * @return the delivery list
     */
    List<DeliveryDetailList> getDeliveryList(@Param("siteDetailId") String siteDetailId);

    /**
     * Gets delivery info.
     *
     * @param id the id
     * @return the delivery info
     */
//通过id获取信息
    DeliveryDetailInfo getDeliveryInfo(@Param("id") Long id);

    /**
     * Modify delivery int.
     *
     * @param deliveryDetailList the delivery detail list
     * @return the int
     */
    int modifyDelivery(DeliveryDetailList deliveryDetailList);

    /**
     * Delivery cap detail list.
     *
     * @param relationId the relation id
     * @return the list
     */
    List<DeliveryDetailList> deliveryCapDetail(String relationId);


    /**
     * Gets coe delivery list.
     *
     * @param relationId the relation id
     * @return the coe delivery list
     */
    List<DeliveryDetailList> getCoeDeliveryList(@Param("relationId") String relationId);
}
